package rgbos.forum.GUI;

import javax.swing.JTextPane;
import javax.swing.text.DefaultStyledDocument;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;

public class TextPaneRightAlign extends JTextPane{
	
	TextPaneRightAlign(){
		super();
		DefaultStyledDocument dSDoc = new DefaultStyledDocument();
		SimpleAttributeSet bSet = new SimpleAttributeSet();  
		StyleConstants.setAlignment(bSet, StyleConstants.ALIGN_RIGHT);  
		dSDoc.setParagraphAttributes(0, 0, bSet, false);
		this.setStyledDocument(dSDoc);
	}
}
